<div class="row-fluid">
    <div class="span12">

        <div class="demo-info" style="margin-bottom:10px">
            <div class="demo-tip icon-tip"></div>
            <div>
                Click on a row to select it, click again to deselect it.
                Click the View to view the record.
            </div>
        </div>

        <table id="flex" style="display:none;"></table>

        <button
            id="import_contact_group_btn"
            style="display: none"
            type="button"
            class="multiple-file-upload-manager"
            data-url='<?php echo $this->Html->url(array('controller' => 'Customer', 'action' => 'contact_uploads')); ?>'
            data-save_to="files/user_<?php echo $user_id; ?>"
            data-max-filesize='2000000'
            data-filetypes='/(\.|\/)(csv|xls|xlsx)$/i'
            data-number_upload_files='1'
            data-extra_params_callback='func_extra_param'
            data-callback='func_callback'>
            <i class="fa fa-cloud-upload"></i> Upload
        </button>

    </div>
</div>

<!-- URLs -->
<input type="hidden" id="table-url" value="<?php echo $this->Html->url(array('controller' => 'Customer', 'action' => 'contact_groups/get')); ?>" />
<input type="hidden" id="table-editable-url" value="<?php echo $this->Html->url(array('controller' => 'Customer', 'action' => 'contact_groups/save')); ?>" />
<input type="hidden" id="table-delete-url" value="<?php echo $this->Html->url(array('controller' => 'Customer', 'action' => 'contact_groups/delete')); ?>" />

<?php echo $this->element('multiple_file_upload_manager'); ?>

<!-- Le Script -->
<script type="text/javascript">
    var permissions = <?php echo json_encode($permissions); ?>;
</script>
<?php
echo $this->Html->script('scripts/customer/contact_group.js');
?>
